package service.impl;

import dao.AccountDao;
import dao.impl.AccountDaoImpl;
import entity.Account;
import service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao = new AccountDaoImpl();

    @Override
    public int insert(Account account) {
        return accountDao.insert(account);
    }

    @Override
    public int delete(int id) {
        return accountDao.delete(id);
    }

    @Override
    public int update(Account account) {
        return accountDao.update(account);
    }

    @Override
    public Account getOne(int id) {
        return accountDao.getOne(id);
    }

    @Override
    public Account exist(Account account) {
        return accountDao.exist(account);
    }

}
